import {Alova} from '../alova/api'


export const loginApi = {

    login(data, params) {
        return Alova.createPost('/personalapi/account/login', data, params)
    },//  登录
    registergin(data, params) {
        return Alova.createPost('personalapi/account/register', data, params)
    },//  注册
    userDetail(data, params) {
        return Alova.createPost('personalapi/account/userDetail', data, params)
    },//  获取用户详情
    sendEmailCode(data, params) {
        return Alova.createPost('personalapi/account/sendEmailCode', data, params)
    }//  发送邮箱验证码
  }